/* 
 * File:   Add.h
 * Author: Gab'z
 *
 * Created on 31 mai 2012, 15:01
 */

#ifndef ADD_H
#define	ADD_H

#include "BinaryOperator.h"

namespace calculator {

    class Add : public BinaryOperator {
        friend class CommandMap;

    public:
        virtual ~Add();
        
        Add* clone() const;

        const Number* apply(const Number* n1, const Number* n2) const throw (ArithmeticException);

    private:
        Add(const std::string name);
        Add(const Add& orig);
    };
}

#endif	/* ADD_H */

